/* 
 * File:   Log.h
 * Author: Gab'z
 *
 * Created on 4 juin 2012, 09:42
 */

#ifndef LOG_H
#define	LOG_H

#include "UnaryOperator.h"

namespace calculator {

    class Log : public UnaryOperator {
        friend class CommandMap;

    public:
        virtual ~Log();
        
        std::string isExecutable() const;
        Log* clone() const;

        const Number* apply(const Number* n) const throw (ArithmeticException);

    private:
        Log(const std::string name);
        Log(const Log& orig);
    };
}

#endif	/* LOG_H */

